aea0f3eec0b114372d3d9ccd9962121eea29ec2c,portal-impl/src/com/liferay/portal/cache/AbstractPortalCacheManager.java,AbstractPortalCacheManager,getCache,#String#boolean#,109

Before Change


			portalCache = new BlockingPortalCache<K, V>(portalCache);
		}

		if ((_portalCaches.putIfAbsent(name, portalCache) == null) &&
			PropsValues.EHCACHE_BOOTSTRAP_CACHE_LOADER_ENABLED &&
			(portalCacheConfiguration != null)) {

			CallbackConfiguration bootstrapConfiguration =
				portalCacheConfiguration.getBootstrapLoaderConfiguration();

			if (bootstrapConfiguration != null) {
				CallbackFactory callbackFactory =
					bootstrapConfiguration.getCallbackFactory();

				BootstrapLoader bootstrapLoader =
					callbackFactory.createBootstrapLoader(
						bootstrapConfiguration.getProperties());

				if (bootstrapLoader != null) {
					bootstrapLoader.load(getName(), name);
				}
			}
		}

		return _portalCaches.get(name);
	}

	@Override

After Change


			portalCache = new BlockingPortalCache<K, V>(portalCache);
		}

		PortalCache<K, V> previousPortalCache = _portalCaches.putIfAbsent(
			name, portalCache);

		if (previousPortalCache != null) {
			portalCache = previousPortalCache;
		}
		else if (PropsValues.EHCACHE_BOOTSTRAP_CACHE_LOADER_ENABLED &&